package nfwx.analytics;

/**
 * 采集参数,布尔类型
 */

public class GrabBoolean extends GrabValue {
    private boolean _value;
    public GrabBoolean(boolean mustHasValue)
    {
        super(mustHasValue);
    }
    public void setValue(boolean v)
    {
        if (_hasValueCount != 0) {
            if (v != _value) {
                _value = v;
                incChanged();
            }
        } else {
            _value = v;
            incChanged();
            incHasValue();
        }
    }

    public boolean getValue()
    {
        return _value;
    }
}
